//
//  YHIMUIKitSystemFaceView.h
//  Meow
//
//  Created by apple on 2019/2/23.
//  Copyright © 2019 yinhe. All rights reserved.
//

#import <UIKit/UIKit.h>

// 行
#define kYHIMUIKIT_SystemFace_RowCount                      3
// 列
#define kYHIMUIKIT_SystemFace_PerRowCount                   9
// section偏移量
#define kYHIMUIKIT_SystemFace_SectionInset                  UIEdgeInsetsMake(0.0, 12.0, 0.0, 12.0)
// 行间距
#define kYHIMUIKIT_SystemFace_LineSpace                     10.0
// 列间距
#define kYHIMUIKIT_SystemFace_InteritemSpace                10.0
// pageControll高度
#define kYHIMUIKIT_SystemFace_PageControll_Height           30.0
// collection上边距
#define kYHIMUIKIT_SystemFace_Collection_TopMargin          12.0
// collection下边距
#define kYHIMUIKIT_SystemFace_Collection_BottomMargin       12.0



NS_ASSUME_NONNULL_BEGIN
@class YHIMUIKitSystemFaceView;
@protocol YHIMUIKitSystemFaceViewDelegate <NSObject>
@optional;
- (void)sysFaceView:(YHIMUIKitSystemFaceView *)sysFaceView didSelectSysFace:(NSString *)sysFaceStr;
- (void)sysFaceViewDidDelete:(YHIMUIKitSystemFaceView *)sysFaceView;
@end


// iOS系统emoji表情View
@interface YHIMUIKitSystemFaceView : UIView

- (instancetype)initWithFrame:(CGRect)frame;
- (instancetype)init NS_UNAVAILABLE;
+ (instancetype)new NS_UNAVAILABLE;

@property (nonatomic, weak) id<YHIMUIKitSystemFaceViewDelegate> delegate;

@property (nonatomic, strong) NSArray<NSArray *> *sysFaces;

@end




@interface YHIMUIKitSystemFacePageCell : UICollectionViewCell
@property (nonatomic, strong) NSArray *faces;
@property (nonatomic, copy) void(^deleteFaceBlock)(void);
@property (nonatomic, copy) void(^didSelectFaceBlock)(NSString *face);
@end



@interface YHIMUIKitSystemFace : NSObject
@property (nonatomic, copy) NSString *sysFaceStr;
@end


@interface YHIMUIKitSystemFaceDelete : NSObject
@end

@interface YHIMUIKitSystemFaceEmpty : NSObject
@end

NS_ASSUME_NONNULL_END
